package com.cmfi.domain.PlcEntity;

import lombok.Data;

/**
 * 点位表.
 */
@Data
public class PlcNode {

	private Long id;

	private Long plcNum;//PLC编号
	
	private String plcConnectAddress;
	
	private String identifier;//唯一标识，例如："db_toZK"."{设备编号}"."out_InboundSig"
	
	private int namespaceIndex;//命名空间
	
	private boolean isSubscribe = false;// 当前点位是否需要订阅

	private Object value;// 当前节点的值

	private String dataType;//数据的类型，boolean或者string等
	
	public String getPlcConnectAddress() {
		return plcConnectAddress;
	}

	public void setPlcConnectAddress(String plcConnectAddress) {
		this.plcConnectAddress = plcConnectAddress;
	}

	public boolean isSubscribe() {
		return isSubscribe;
	}

	public void setSubscribe(boolean isSubscribe) {
		this.isSubscribe = isSubscribe;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPlcNum() {
		return plcNum;
	}

	public void setPlcNum(Long plcNum) {
		this.plcNum = plcNum;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public int getNamespaceIndex() {
		return namespaceIndex;
	}

	public void setNamespaceIndex(int namespaceIndex) {
		this.namespaceIndex = namespaceIndex;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public PlcNode(Long id, Long plcNum, Long value, String dataType, int namespaceIndex,
			String identifier) {
		super();
		this.id = id;
		this.plcNum = plcNum;
		this.value = value;
		this.dataType = dataType;
		this.namespaceIndex = namespaceIndex;
		this.identifier = identifier;
	}

	public PlcNode() {
		// TODO Auto-generated constructor stub
	}

}
